﻿import request from '/@/utils/request';
enum Api {
  AddFlowSystemSG = '/api/flowSystemSG/add',
  DeleteFlowSystemSG = '/api/flowSystemSG/delete',
  UpdateFlowSystemSG = '/api/flowSystemSG/update',
  SaveFlowSystemSG = '/api/flowSystemSG/save',
  PageFlowSystemSG = '/api/flowSystemSG/page',
  ExportFlowSystemSG = 'api/flowSystemSG/export',
  ImportUrl= 'api/flowSystemSG/import',
  downLoadTemplate = 'api/flowSystemSG/TemplateDown',
}

//导出施工人員補充
export const exportFlowSystemSGExcel=(params?:any)=>
	request({
		url:Api.ExportFlowSystemSG,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加施工人員補充
export const addFlowSystemSG = (params?: any) =>
	request({
		url: Api.AddFlowSystemSG,
		method: 'post',
		data: params,
	});

// 删除施工人員補充
export const deleteFlowSystemSG = (params?: any) => 
	request({
			url: Api.DeleteFlowSystemSG,
			method: 'post',
			data: params,
		});

// 编辑施工人員補充
export const updateFlowSystemSG = (params?: any) => 
	request({
			url: Api.UpdateFlowSystemSG,
			method: 'post',
			data: params,
		});

// 保存施工人員補充
export const saveFlowSystemSG = (params?: any) => 
	request({
			url: Api.SaveFlowSystemSG,
			method: 'post',
			data: params,
		});

// 分页查询施工人員補充
export const pageFlowSystemSG = (params?: any) => 
	request({
			url: Api.PageFlowSystemSG,
			method: 'post',
			data: params,
		});

export const importUrl = () => {return Api.ImportUrl;};
export const downLoadTemplate = ()=>{return Api.downLoadTemplate ;};



